package com.yoogor.xposedtest;

import android.os.HandlerThread;

import java.util.logging.Handler;

/**
 * @author caipengrui 2018/6/11
 * Package com.yoogor.xposedtest
 * Title:  HandleThread
 * Description: (用一句话描述该文件做什么)
 * Copyright (c) 2018 优菓科技有限公司 All rights reserved.
 * Create DateTime: 2018/6/11.
 */
public class HandleThread {
    private HandlerThread handlerThread = new HandlerThread("HandleThread");
    private android.os.Handler handler = null;

    private HandleThread() {
        handlerThread.start();
        handler = new android.os.Handler(handlerThread.getLooper());

    }

    private static class Instance {
        final static HandleThread instance = new HandleThread();
    }

    public static HandleThread instance() {
        return Instance.instance;
    }

    public android.os.Handler getHandler() {
        return handler;
    }
}
